ComponentOne CollectionView
C1.CollectionView Assembly / C1.CollectionView Namespace / ICollectionViewEx Class / SortAsync Method / SortAsync<T>(ICollectionView<T>,Expression<Func<T,Object>>,SortDirection) Method
The collection view.
The filter path.
The sort direction.

In This Topic
    SortAsync<T>(ICollectionView<T>,Expression<Func<T,Object>>,SortDirection) Method
    In This Topic
    Sorts the collection view according to the specified sort path and direction.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SortAsync(Of T As Class)( _
       ByVal collectionView As ICollectionView(Of T), _
       ByVal sortPath As System.Linq.Expressions.Expression(Of Func(Of T,Object)), _
       Optional ByVal sortDirection As SortDirection _
    ) As System.Threading.Tasks.Task
    public static System.Threading.Tasks.Task SortAsync<T>( 
       ICollectionView<T> collectionView,
       System.Linq.Expressions.Expression<Func<T,object>> sortPath,
       SortDirection sortDirection
    )
    where T: class

    Parameters

    collectionView
    The collection view.
    sortPath
    The filter path.
    sortDirection
    The sort direction.

    Type Parameters

    T
    See Also